package com.roc.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity/*
@Table(name = "TBL_TER_STATISTICS")*/
public class TblTermBrandStatistics  implements Serializable  {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1469180153845275024L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqTermBrandStatistics")
	@SequenceGenerator(name = "seqTermBrandStatistics", sequenceName = "SEQ_TERM_BRAND_STATISTICS")
	@Column(name = "ID")
	private long id; // id
	
	@Column(name = "AGENT_ID")
	private long agentId; // 代理商id
	
	@Column(name = "SERIAL_NUM")
	private String serialNum; // SN号
	
	@Column(name = "POS_BRAND")
	private String posBrand; // 品牌
	
	@Column(name = "BRAND_DATE")
	private Date brandDate; // 绑定日期

	@Column(name = "TERM_ID")
	private String termId; // 终端号
	
	@Column(name = "MCHNT_CD")
	private String mchntCd; // 商户号
	
	@Column(name = "DT_CREATE")
	private Date dtCreate; // 创建时间
	
	@Column(name = "DT_LASTMOD")
	private Date dtLastmod; // 更新时间

	@Transient
	private String agentName;
	
	@Transient
	private String orgName;
	
	@Transient
	private String brandDateStr; // 绑定日期

	@Transient
	private String dtCreateStr; // 创建时间

	@Transient
	private String dtLastmodStr; // 更新时间

	@Transient
	private long companyId;// 所属大区[分公司] id
	
	@Transient
	private String companyName;// 所属大区[分公司] 名称
	
	@Transient
	private long oneagentId;// 所属一级代理商 id
	
	@Transient
	private String oneagentName;// 所属一级代理商 名称
	
	@Transient
	private Integer allNums;// 仓库导入总数量
	
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getAgentId() {
		return agentId;
	}

	public void setAgentId(long agentId) {
		this.agentId = agentId;
	}

	public String getSerialNum() {
		return serialNum;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}

	public String getPosBrand() {
		return posBrand;
	}

	public void setPosBrand(String posBrand) {
		this.posBrand = posBrand;
	}

	public Date getBrandDate() {
		return brandDate;
	}

	public void setBrandDate(Date brandDate) {
		this.brandDate = brandDate;
	}

	public String getTermId() {
		return termId;
	}

	public void setTermId(String termId) {
		this.termId = termId;
	}

	public String getMchntCd() {
		return mchntCd;
	}

	public void setMchntCd(String mchntCd) {
		this.mchntCd = mchntCd;
	}

	public Date getDtCreate() {
		return dtCreate;
	}

	public void setDtCreate(Date dtCreate) {
		this.dtCreate = dtCreate;
	}

	public Date getDtLastmod() {
		return dtLastmod;
	}

	public void setDtLastmod(Date dtLastmod) {
		this.dtLastmod = dtLastmod;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getBrandDateStr() {
		return brandDateStr;
	}

	public void setBrandDateStr(String brandDateStr) {
		this.brandDateStr = brandDateStr;
	}

	public String getDtCreateStr() {
		return dtCreateStr;
	}

	public void setDtCreateStr(String dtCreateStr) {
		this.dtCreateStr = dtCreateStr;
	}

	public String getDtLastmodStr() {
		return dtLastmodStr;
	}

	public void setDtLastmodStr(String dtLastmodStr) {
		this.dtLastmodStr = dtLastmodStr;
	}

	public long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(long companyId) {
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public long getOneagentId() {
		return oneagentId;
	}

	public void setOneagentId(long oneagentId) {
		this.oneagentId = oneagentId;
	}

	public String getOneagentName() {
		return oneagentName;
	}

	public void setOneagentName(String oneagentName) {
		this.oneagentName = oneagentName;
	}

	public Integer getAllNums() {
		return allNums;
	}

	public void setAllNums(Integer allNums) {
		this.allNums = allNums;
	}

}
